<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page import="com.amit.Student" %>
<html>
<head>
<title>test2.jsp</title>
</head>
<body>
<h1>using useBean and other tags</h1>
<jsp:useBean id="ST" class="com.amit.Student" scope="session">
</jsp:useBean>

<jsp:setProperty name="ST" property="sid" value="88"/>
<jsp:setProperty name="ST" property="name" value="Nivas"/>
<jsp:setProperty name="ST" property="phone" value="123456"/>

<br/>
sid:<jsp:getProperty name="ST" property="sid"/><br/>
name:<jsp:getProperty name="ST" property="name"/><br/>
phone:<jsp:getProperty name="ST" property="phone"/><br/>

</body>
</html>